package uicgas.register.remotecmds;

import uicgas.communication.RemoteCommand;
import uicgas.globaldata.MessagePayload;
import uicgas.register.Comunications;
import uicgas.register.RegisterLogic;

public class AnnounceTransaction implements RemoteCommand
{
	private RegisterLogic register;

	public AnnounceTransaction(RegisterLogic register2,
			Comunications comunications)
	{
		this.register = register2;
	}

	public void executeRemoteCommand(RegisterLogic register2)
	{
		this.register = register2;
	}

	public int executeRemoteCommand(MessagePayload inData)
	{
		if (inData != null)
		{
			register.AnnounceTransaction(inData);
			return 0;
		}
		else
		{
			return -1;
		}

	}

	@Override
	public void executeRemoteCommand()
	{

	}
}
